package konggao.ots;

import java.net.URI;

import com.aliyun.common.auth.ServiceCredentials;
import com.aliyun.common.comm.DefaultServiceClient;
import com.aliyun.common.comm.ServiceClient;
import com.aliyun.openservices.ClientConfiguration;
import com.aliyun.openservices.ots.OTSServiceConfiguration;

public class OTSConfig {
  private URI endpoint;
  private ServiceCredentials credentials;
  private ServiceClient client;
  private OTSServiceConfiguration serviceConfig = new OTSServiceConfiguration();
    
  public OTSConfig()
  {
    super();
    client = new DefaultServiceClient( new ClientConfiguration() );
  }

public URI getEndpoint() {
    return endpoint;
  }

  public void setEndpoint(URI endpoint) {
    this.endpoint = endpoint;
  }

  public ServiceCredentials getCredentials() {
    return credentials;
  }

  public void setCredentials(ServiceCredentials credentials) {
    this.credentials = credentials;
  }

  public ServiceClient getClient() {
    return client;
  }

  public void setClient(ServiceClient client) {
    this.client = client;
  }

  public OTSServiceConfiguration getServiceConfig() {
    return serviceConfig;
  }

  public void setServiceConfig(OTSServiceConfiguration serviceConfig) {
    this.serviceConfig = serviceConfig;
  }


}
